let systemInfo = {};
let basicSize = 375;
let basicAspect = 1;

export function initUnitbasic() {
  systemInfo = wx.getSystemInfoSync();
  basicAspect = systemInfo.windowWidth / basicSize;
}

export function rpx(v) {
    return v * basicAspect;
}

export function select(map) {
  return map[systemInfo.windowWidth]
}